import request from '@/utils/request'
// 客户列表优化
// 协助人审核 - 上标
export const getAssistantNum = (data?: any) => {
  return request({
    url: '/scrm-api/console/customer/assistant-records-num',
    method: 'POST',
    data
  })
}
// 批量导入-个人客户-老接口
export const batchImportCustomer = (data?: any) => {
  return request({
    url: '/scrm-api/console/customer/input/cust',
    method: 'POST',
    data
  })
}
// 批量导入-模板-老接口
export const downloadTemplate = (data?: any) => {
  return request({
    url: '/scrm-api/console/customer/download/cust/template',
    data
  })
}
//批量导入-模版-个人
export const batchImportAsyncCustomer = (data?: any) => {
  return request({
    url: '/scrm-api/console/customer/input/async-cust',
    method: 'POST',
    data
  })
}

// // 批量导入-个人客户-新接口
// export const batchImportCustomer = (data?: any) => {
//   return request({
//     url: '/scrm-api/console/customer/opensea/batch-add',
//     method: 'POST',
//     data
//   })
// }
// 批量导入-企业客户
export const batchImportQyCustomer = (data?: any) => {
  return request({
    url: '/scrm-api/console/customer/opensea/qy-batch-add',
    method: 'POST',
    data
  })
}
// 批量导入-企业客户模板
export const downloadQyCustomerTemplte = (data?: any) => {
  return request({
    url: '/scrm-api/console/customer/opensea/download-template',
    method: 'POST',
    data
  })
}
// 选择客户公海列表
export const getCustomerOpenseaSelect = (data?: any) => {
  return request({
    url: '/scrm-api/console/customer/opensea/drop-down-list',
    method: 'POST',
    data
  })
}
// 获取客户类型配置
export const getCustomerType = (data?: any) => {
  return request({
    url: '/scrm-api/console/customer/opensea/get-default-type',
    method: 'POST',
    data
  })
}
// 客户详情-获取客户收货人
export const getCustomerConsigneeList = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/consignee/list',
    method: 'POST',
    data
  })
}
// 客户详情-获取最近浏览商品
export const getCustomePproductsList = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/browse/products',
    method: 'POST',
    data
  })
}
// 客户详情-短信签名列表
export const getCustomeSmsSignList = (params?: any, flag: boolean = false) => {
  return request({
    url: '/scrm-api/console/customer/sms/sign/list',
    params,
    noNeedLoading: flag
  })
}
// 客户详情-短信模版列表
export const getCustomeSmsTemplateList = (params: any, flag: boolean = false) => {
  return request({
    url: '/scrm-api/console/customer/sms/template/list',
    params,
    noNeedLoading: flag
  })
}
// 客户详情-发送短信接口
export const getCustomeSmsSend = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/sms/send',
    method: 'POST',
    data
  })
}
// 客户详情-短信授权地址
export const getCustomeSmsAuthSso = (data?: any) => {
  return request({
    url: '/scrm-api/console/sms-auth/sso',
    method: 'POST',
    data
  })
}
// 客户详情-抖音关注列表
export const getCustomerDouyinList = (data?: any) => {
  return request({
    url: '/scrm-api/console/customer/douyin/follow/list',
    method: 'POST',
    data
  })
}

// 客户详情页-会员信息
export const getMemberBaseInfo = (data?: any) => {
  return request({
    url: '/scrm-api/console/member/base/info',
    method: 'get',
    params: data
  })
}
// 客户详情——客户动态——合同
export const getContract = (data:any) => {
  return request({
    url: "/scrm-api/console/sale/contract/list",
    method: "POST",
    data
  })
}
